<?php

require_once "./db.php";

$stmt = $pdo->query("select * from player");
$stmt->setFetchMode(PDO::FETCH_ASSOC);
echo json_encode($stmt->fetchAll(PDO::FETCH_ASSOC));
header("Content-Typ: application/json");